package cn.kgc.newmanager.service;

import cn.kgc.newmanager.pojo.Detail;
import com.github.pagehelper.PageInfo;

/**
 * @author shkstart
 * @create 郭祥伟
 */
public interface DetailService {
    //根据分类id查询，并分页
    public PageInfo<Detail> select(Integer pageNum, Integer pageSize, String title, Integer categoryId);
    //新增
    public Integer add(Detail detail);
    //根据id查询
    public Detail selectById(Integer id);
    //根据id修改
    public Integer update(Detail detail);
    //根据id删除
    public Integer delete(Integer id);
}
